"""
@author: 江同学呀
@file: base_tokenizer.py
@date: 2024/11/24 16:38
@desc:
"""
from typing import Dict

from espc.orm.model.base.base import _Base


class BaseTokenizer(_Base):
    """
    分词器基类
    """
    type: str

    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        return

    def _build(self) -> Dict:
        body: Dict = {}
        if self.type:
            body["type"] = self.type
        return body

